#include "StdAfx.h"
#include "Derivada2.h"

Derivada2::Derivada2(void):Base(10){

	SetK(20);
	printf("\nContructor Derivada2\n");
}

Derivada2::~Derivada2(void){

}

Derivada2::Derivada2(int i, int k):Base(i){

	SetK(k);
}

int Derivada2::GetK() const{

	return m_k;

}

void Derivada2::SetK(int k){

	m_k=k;
}

int Derivada2::GetResta()const{

	return GetI()-GetK();

}
